package com.testingedu.action.front;

import com.testingedu.action.background.RequestContext;
import com.testingedu.jdbcDao.TRegistDao;
import com.testingedu.model.TRegist;

public class TRegistAction extends RequestContext{
	
	private static final long serialVersionUID = -3982568379581852049L;
	private TRegist tRegist;
	private static TRegistDao tRegistDao = new TRegistDao();
	public TRegist gettRegist() {
		return tRegist;
	}
	public void settRegist(TRegist tRegist) {
		this.tRegist = tRegist;
	}
	
	public void recieve_() throws Exception {
		tRegistDao.add(tRegist);
		response.getWriter().close();
	}
}
